suite("assign", function () {
    "use strict";

    require("./assign");
    var assert = require("assert");

    test("doesn't fail on target only", function () {
        var target = {};
        var check = Object.assign(target);
        assert(check === target);
        for (var name in check) {
            assert(false);
        }
    });

    test("assigns from single source", function () {
        var target = {};
        var check = Object.assign(target, {some: 1});
        assert(check === target);
        assert(check.some === 1);
    });

    test("assigns from multiple sources", function () {
        var target = {};
        var check = Object.assign(target, {some: 1}, {someOther: 2});
        assert(check == target);
        assert(check.some === 1);
        assert(check.someOther === 2);
    });
});
